import request from "./index.js";

// 微信登录 https://travel.daoziji.com/usr/login/consumerCodeGainUserPhone
export function consumerCodeGainUserPhone(data) {
    return request("wxUser/login/consumerCodeGainUserPhone", data, "GET");
}

// 获取手机号验证码 https://travel.daoziji.com/user/wxUser/login/gainCode
export function gainCode(data) {
    return request("wxUser/login/gainCode", data, "GET");
}

// 手机号验证码登录 https://travel.daoziji.com/wxUser/wxUser/login/operationLoginOrRegister
export function operationLoginOrRegister(data) {
    return request("wxUser/login/operationLoginOrRegister", data);
}

// 查询用户角色 https://travel.daoziji.com/wxUser/authentication/queryAuthentication
export function queryAuthentication(data) {
    return request("wxUser/authentication/queryAuthentication", data, "GET");
}

// 绑定学生 https://travel.daoziji.com/wxUser/bindingRelation/newlyBindingRelation
export function newlyBindingRelation(data) {
    return request(
        "wxUser/bindingRelation/newlyBindingRelation",
        data,
        "POST",
        true
    );
}

// 绑定家长 https://travel.daoziji.com/wxUser/bindingRelation/bindingGuardianPhone
export function bindingGuardianPhone(data) {
    return request("wxUser/bindingRelation/bindingGuardianPhone", data);
}

// 绑定列表 https://travel.daoziji.com/wxUser/bindingRelation/queryBindingRelationList
export function queryBindingRelationList(data) {
    return request(
        "wxUser/bindingRelation/queryBindingRelationList",
        data,
        "GET"
    );
}

// 删除绑定列表 https://travel.daoziji.com/user/wxUser/bindingRelation/deleteBindingRelation
export function deleteBindingRelation(data) {
    return request(
        "wxUser/bindingRelation/deleteBindingRelation",
        data,
        "DELETE"
    );
}

// 方案管理 https://travel.daoziji.com/plan/proposal/proposalPage
export function proposalPage(data) {
    return request("plan/proposal/proposalPage", data, "GET");
}

// 人员管理 https://travel.daoziji.com/plan/proposalItinerary/findPartyGroup
export function findPartyGroup(data) {
    return request("plan/proposalItinerary/findPartyGroup", data, "GET");
}

// 新增参与者 https://travel.daoziji.com/plan/proposalItinerary/addParty
export function addParty(data) {
    return request("plan/proposalItinerary/addParty", data);
}

// 删除参与者 https://travel.daoziji.com/plan/proposalItinerary/deleteParty
export function deleteParty(data) {
    return request("plan/proposalItinerary/deleteParty", data);
}

// 分组 https://travel.daoziji.com/user/proposalItinerary/randomPartyGroup
export function randomPartyGroup(data) {
    return request("plan/proposalItinerary/randomPartyGroup", data, "GET");
}

// 设置为组长 https://travel.daoziji.com/user/proposalItinerary/updateParty
export function updateParty(data) {
    return request("plan/proposalItinerary/updateParty", data);
}

// 调组 https://travel.daoziji.com/user/proposalItinerary/updatePartyGroup
export function updatePartyGroup(data) {
    return request("plan/proposalItinerary/updatePartyGroup", data);
}

// 团队路线管理 https://travel.daoziji.com/plan/proposalItinerary/findGroupTask
export function findGroupTask(data) {
    return request("plan/proposalItinerary/findGroupTask", data, "GET");
}

// 更新团队任务列表 https://travel.daoziji.com/plan/proposalItinerary/saveGroupTask
export function saveGroupTask(data) {
    return request("plan/proposalItinerary/saveGroupTask", data, "GET");
}

// 团队经典上移和下移 https://travel.daoziji.com/user/proposalItinerary/itineraryScenicMove
export function itineraryScenicMove(data) {
    return request("plan/proposalItinerary/itineraryScenicMove", data, "GET");
}

// 获取后勤信息 https://travel.daoziji.com/userproposal/findWorker
export function findWorker(data) {
    return request("plan/proposal/findWorker", data, "GET");
}

// 删除后勤信息 https://travel.daoziji.com/plan/proposal/deleteProposalWorker
export function deleteProposalWorker(data) {
    return request(
        `plan/proposal/deleteProposalWorker?proposalWorkerId=${data}`,
        {proposalWorkerId: data},
        "DELETE"
    );
}

// 添加后勤信息 https://travel.daoziji.com/plan/proposal/addProposalWorker
export function addProposalWorker(data) {
    return request(`plan/proposal/addProposalWorker`, data);
}

// 编辑后勤信息 https://travel.daoziji.com/plan/proposal/editProposalWorker
export function editProposalWorker(data) {
    return request(`plan/proposal/editProposalWorker`, data);
}

// 开启签到 https://travel.daoziji.com/plan/proposalItinerary/start
export function start(data) {
    return request(`plan/proposalItinerary/start`, data, "GET", true);
}

// 查看学生位置 https://travel.daoziji.com/plan/wxUser/bindingRelation/queryStudentLocal
export function queryStudentLocal(data) {
    return request(`wxUser/bindingRelation/queryStudentLocal`, data, "GET", true);
}

// 查看报告https://travel.daoziji.com/user/bindingRelation/queryItineraryList
export function queryItineraryList(data) {
    return request(
        `wxUser/bindingRelation/queryItineraryList`,
        data,
        "GET",
        true
    );
}

// 发送通知 https://travel.daoziji.com/wxUser/messageAssemble/newlyMessageAssemble
export function newlyMessageAssemble(data) {
    return request(`wxUser/messageAssemble/newlyMessageAssemble`, data, "POST");
}

// 负责人消息列表 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryAssembleList
export function queryAssembleList(data) {
    return request(`wxUser/messageAssemble/queryAssembleList`, data, "GET");
}

//  用户消息列表 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryByUserPhoneMessageList
export function queryByUserPhoneMessageList(data) {
    return request(
        `wxUser/messageAssemble/queryByUserPhoneMessageList`,
        data,
        "GET"
    );
}

// 编辑用户信息 https://travel.daoziji.com/wxUser/login/editWxUserInfo
export function editWxUserInfo(data) {
    return request(`wxUser/login/editWxUserInfo`, data, "PUT");
}

// 获取用户信息 https://travel.daoziji.com/wxUser/wxUser/login/queryUserInfoByPhone
export function queryUserInfoByPhone(data) {
    return request(`wxUser/login/queryUserInfoByPhone`, data, "GET");
}

// https://travel.daoziji.com/wxUser/wxUser/bindingRelation/queryPatriarchBindingListByStudentPhone

export function queryPatriarchBindingListByStudentPhone(data) {
    return request(
        `wxUser/bindingRelation/queryPatriarchBindingListByStudentPhone`,
        data,
        "GET"
    );
}

// 已读和未读 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/readMessage
export function readMessage(data) {
    return request(`wxUser/messageAssemble/readMessage`, data, "PUT");
}

//获取详情 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryAssemblePersonList
export function queryAssemblePersonList(data) {
    return request(`wxUser/messageAssemble/queryAssemblePersonList`, data, "GET");
}

// 个人行程报告 | 查询用户信息 https://travel.daoziji.com/plan/apperception/queryItineraryReportUserInfo
export function queryItineraryReportUserInfo(data) {
    return request(`plan/apperception/queryItineraryReportUserInfo`, data, "GET");
}

// 个人行程报告 | 查询任务列表https://travel.daoziji.com/plan/plan/apperception/queryItineraryReportTaskSituation
export function queryItineraryReportTaskSituation(data) {
    return request(
        `plan/apperception/queryItineraryReportTaskSituation`,
        data,
        "GET"
    );
}

// 个人行程报告 | 查询行程感悟https://travel.daoziji.com/plan/apperception/queryItineraryReportApperception
export function queryItineraryReportApperception(data) {
    return request(
        `plan/apperception/queryItineraryReportApperception`,
        data,
        "GET"
    );
}

//  个人行程报告 | 查询精彩时刻 https://travel.daoziji.com/plan/apperception/queryItineraryReportHighlightMoment
export function queryItineraryReportHighlightMoment(data) {
    return request(
        `plan/apperception/queryItineraryReportHighlightMoment`,
        data,
        "GET"
    );
}

// 团队行程报告 | 查询团队信息 https://travel.daoziji.com/plan/plan/apperception/queryTeamItineraryReportGroupInfo
export function queryTeamItineraryReportGroupInfo(data) {
    return request(
        `plan/apperception/queryTeamItineraryReportGroupInfo`,
        data,
        "GET"
    );
}

// 查询团队信息 https://travel.daoziji.com/planproposalItinerary/groupDetailList
export function groupDetailList(data) {
    return request(`plan/proposalItinerary/groupDetailList`, data, "GET");
}

// https://travel.daoziji.com/planproposalItinerary/groupTaskDetailList
export function groupTaskDetailList(data) {
    return request(`plan/proposalItinerary/groupTaskDetailList`, data, "GET");
}

// 个人报告列表 https://travel.daoziji.com/plan/plan/apperception/queryPersonageReportList
export function queryPersonageReportList(data) {
    return request(`plan/apperception/queryPersonageReportList`, data, "GET");
}

// 团队报告列表 https://travel.daoziji.com/plan/plan/apperception/queryGroupReportList
export function queryGroupReportList(data) {
    return request(`plan/apperception/queryGroupReportList`, data, "GET");
}

// 获取团队 https://travel.daoziji.com/plan/plan/apperception/queryTeamItineraryReportTaskSituation
export function queryTeamItineraryReportTaskSituation(data) {
    return request(
        `plan/apperception/queryTeamItineraryReportTaskSituation`,
        data,
        "GET"
    );
}

// 用户列表 无消息 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryByUserPhoneMessageListAll
export function queryByUserPhoneMessageListAll(data) {
    return request(
        `wxUser/messageAssemble/queryByUserPhoneMessageListAll`,
        data,
        "GET"
    );
}

// 消息详情 https://travel.daoziji.com/user/wxUser/messageAssemble/queryByUserPhoneMessageInfo
export function queryByUserPhoneMessageInfo(data) {
    return request(
        `wxUser/messageAssemble/queryByUserPhoneMessageInfo`,
        data,
        "GET"
    );
}

// 退出登录 https://travel.daoziji.com/user/wxUser/login/loginOut
export function loginOut(data) {
    return request(`wxUser/login/loginOut`, data, "DELETE");
}

// 团队成员通关列表 https://travel.daoziji.com/plan/plan/apperception/queryGroupMemberList
export function queryGroupMemberList(data) {
    return request(`plan/apperception/queryGroupMemberList`, data, "GET");
}

// 修改组名 https://travel.daoziji.com/plan/proposalItinerary/editGroupName
export function editGroupName(data) {
    return request(`plan/proposalItinerary/editGroupName`, data, "GET");
}

// 负责人详细详情 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryMessageInfoByMessageId
export function queryMessageInfoByMessageId(data) {
    return request(
        `wxUser/messageAssemble/queryMessageInfoByMessageId`,
        data,
        "GET"
    );
}

// https://travel.daoziji.com/plan/plan/apperception/queryItineraryReportProposalInfo
export function queryItineraryReportProposalInfo(data) {
    return request(
        `plan/apperception/queryItineraryReportProposalInfo`,
        data,
        "GET"
    );
}

// 导出 https://travel.daoziji.com/plan/proposalItinerary/outPortExcel
export function outPortExcel(data) {
    return request(`plan/proposalItinerary/outPortExcel`, data, "GET");
}

// 团队 https://travel.daoziji.com/plan/proposalItinerary/groupTask
export function groupTask1(data) {
    return request(`plan/proposalItinerary/groupTask`, data, "GET");
}

// 判断是否出现行程报告  https://travel.daoziji.com/plan/plan/apperception/judgeApperception
export function judgeApperception(data) {
    return request(`plan/apperception/judgeApperception`, data, "GET");
}

// 判断行程是否添加人员 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/queryItineraryIsParty
export function queryItineraryIsParty(data) {
    return request(`wxUser/messageAssemble/queryItineraryIsParty`, data, "GET");
}

// 判断是否分组 https://travel.daoziji.com/plan/proposalItinerary/isSetGroup
export function isSetGroup(data) {
    return request(`plan/proposalItinerary/isSetGroup`, data, "GET");
}
